package com.sun.commons.base;

import lombok.Data;

import java.util.Collection;
import java.util.List;

/**
 * MP自动填充Handler
 *
 * @Author whsunchunbo@qq.com
 * @CreateTime 2025/9/10 01:22
 */

public class PageData<T> {

    private int totalPage;
    private long total;
    private List<T> data;


    public PageData(List<T> data, long total, int totalPage) {
        this.totalPage = totalPage;
        this.total = total;
        this.data = data;
    }

    public Collection<T> getData() {
        return data;
    }
}
